package com.homework.g2021;

import java.util.ArrayList;
import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo {

	public static void main(String[] args) {
		String xmlPath="/com/homework/g2021/beans0.xml";
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlPath);

//		IFlyable wuya1 = (IFlyable)applicationContext.getBean("wuyaProxy1");
//		wuya1.fly();
		
		Sky sky = (Sky)applicationContext.getBean("sky");
		sky.show();
		
	}

}
